package EveryDayPractice;

public class Practice49 {
     public static void main(String[] args) {
         String a="asdascasffas";
         String b="as";
         int index=0;
         int count=0;
         while((index=a.indexOf(b,index))!=-1){
             count++;
             index=index+b.length();
         }
         System.out.println(count+"个");
     }
}
